(function($){
	var _submit = function(method,url,data){
		var formId = "__form__";
	    var $form = $("#"+formId);
	    if ($form.length==0) {  //create form
	        $form = $(document.createElement('form'));
	        $form.attr("id",formId);
	        $form.attr("target",'_blank');
	        $form.hide();
	        $form.appendTo($("body"));
	    }
        $form.attr("method",method);
        $form.attr("action",url);
	    $form.empty();
	    if ($.isPlainObject(data)) {
	    	$.map(data,function(value, key){
	    		var $input = $(document.createElement('input'));
	    		$input.attr("type","hidden");
	    		$input.attr("name",key);
	    		$input.val(value);
	    		$input.appendTo($form);
	    	});
	    }
	    $form.submit();
	};
	$.extend({
		"submit":{
			"get":function(url,data){
				_submit("GET",url,data);
			},
			"post":function(url,data){
				_submit("POST",url,data);
			}
		}
		
	});
})(jQuery);